package command;

import java.util.Vector;

import indexingSystem.IndexingSystem;

public class Quit implements Command {
	public String getCommandName() {
		return "quit";
	}
	public boolean commandHasArgs() {
		return false;
	}
	public void execute(Vector<String> vector) throws Exception {
		try {
			IndexingSystem.halt();
		} catch (Exception e) {
			e.printStackTrace();
		}
		System.exit(0);		
	}
	public String getCommandUsage() {
		return "";
	}

}
